package com.zone.module_base.fragment

import android.util.Log
import androidx.navigation.fragment.navArgs
import com.zone.core.base.BaseBindingViewModelFragment
import com.zone.module_base.BaseApp
import com.zone.module_base.databinding.FragmentTestVideoBinding
import com.zone.module_base.viewmodel.TestVideoViewModel

class TestVideoFragment :
    BaseBindingViewModelFragment<FragmentTestVideoBinding, TestVideoViewModel>() {
    val TAG = "TestVideoFragment"
    val args: TestVideoFragmentArgs by navArgs()
    override fun inject() {
        BaseApp.appComponent.inject(this)
    }

    override fun initDataBinding(binding: FragmentTestVideoBinding) {
        super.initDataBinding(binding)

        Log.d(TAG, "inject: value: ${args.value?.title}")
        Log.d(TAG, "inject: id: ${arguments?.getLong("id")}")
        Log.d(TAG, "inject: value: ${arguments?.getString("title")}")
        Log.d(TAG, "inject: value: ${arguments?.getString("title")}")
    }

    override fun onEvent(eventId: Int) {
        super.onEvent(eventId)


    }

}